﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QL_Chitiet_monhoc.aspx.cs" Inherits="DOAN.Admin.QL_Chitiet_monhoc" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="content-right">
        <div class="title_right">
            <p class="fs24 cl2 fi font_time">
                <img src="../Imagine/icon_right_title.png" />Quản lý chi tiết môn học</p>
        </div>
        <div class="register">
            <div class="register">
               <span class="cl4"> <asp:Label ID="lblLoi" runat="server" Text=""></asp:Label></span></div>
                <div class="register mart22">
                     <div class="label ">
                    <asp:ImageButton ID="img_refesh" runat="server" ImageUrl="~/Imagine/icon_refresh.png"
                        OnClick="imgRe_Click" Style="height: 22px; width: 22px;" />
                    Refresh
                    </div>
                    <div class="text_box">
                    <asp:ImageButton ID="Themmon" runat="server" ImageUrl="~/Imagine/icon_add.png" OnClick="imgThem_Click"
                        Style="height: 22px; width: 22px;" />
                    Thêm chi tiết môn học
                </div>
                </div>
            <div class="register mart22">
                <div class="text_box2">
                    <asp:RadioButtonList runat="server" ID="rd_Ykien" Width="193px" ForeColor="#000"
                        RepeatDirection="Horizontal">
                        <asp:ListItem Text="Theo mã môn" Value="0" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Theo mã giáo viên" Value="1"></asp:ListItem>
                    </asp:RadioButtonList>
                </div>
                <div class="text_box">
                    <asp:TextBox ID="txtTimkiem" runat="server" Width="182px"></asp:TextBox>
                </div>
                <div class="label">
                    <asp:ImageButton ID="imgtk" runat="server" ImageUrl="~/Imagine/input_search.png"
                        OnClick="imgtk_Click" Style="height: 22px" />
                </div>
               
            </div>
            <div class="register mart22">
                <asp:GridView runat="server" ID="griMonhoc" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !" AllowPaging="True"    
                OnPageIndexChanging="griMonhoc_PageIndexChanging"
                    OnRowCommand="griMonhoc_RowCommand" CellPadding="4" GridLines="None" Width="679px"
                    ForeColor="#333333">
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <Columns>
                        <asp:TemplateField HeaderText="ID" HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="id" Text='<%#DataBinder.Eval(Container.DataItem,"ID") %>'>
                                </asp:Label>
                            </ItemTemplate>

<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mã môn học" HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="mamon" Text='<%#DataBinder.Eval(Container.DataItem,"Mamonhoc") %>'>
                                </asp:Label>
                            </ItemTemplate>

<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mã giáo viên " HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblTen" Text='<%#DataBinder.Eval(Container.DataItem,"Tentaikhoan") %>'>
                                </asp:Label>
                            </ItemTemplate>
                            
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Sửa" HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="img_sua" CommandName="sua" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>'
                                    ImageUrl="~/icon/edit_profile.png" />
                            </ItemTemplate>

<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Xóa" HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="img_xoa" CommandName="xoa" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>'
                                    ImageUrl="~/icon/delete_user.png" />
                            </ItemTemplate>

<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </div>
            <asp:Panel ID="pnSua" runat="server" Visible="false">
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="lblMa" runat="server" Text="ID"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:Label ID="txtmamon" runat="server" Text=""></asp:Label>
                    </div>
                </div>
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="Label3" runat="server" Text="Mã môn học"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:DropDownList ID="drMa" runat="server">
                </asp:DropDownList>
                    </div>
                    
                </div>
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="lblTen" runat="server" Text="Tên giáo viên"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:DropDownList ID="drGv" runat="server">
                </asp:DropDownList>
                    </div>
                    
                </div>
                
                <div class="register mart22">
                    <asp:Button ID="btDongy" runat="server" Text="Sửa" OnClick="btDongy_Click" ValidationGroup="test" />
                    <asp:Button ID="btLamlai" runat="server" Text="Hủy " OnClick="btLamlai_Click" Width="61px" />
                </div>
            </asp:Panel>
            <asp:Panel ID="pnThem" runat="server" Visible="false">
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="Label1" runat="server" Text="Mã môn học"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:DropDownList ID="drMa2" runat="server">
                </asp:DropDownList>
                    </div>
                </div>
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="Label2" runat="server" Text="Họ tên giáo viên"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:DropDownList ID="drGv2" runat="server">
                </asp:DropDownList>
                    </div>
                </div>
                  
                <div class="register mart22">
                    <asp:Button ID="btLuu" runat="server" Text="Thêm" OnClick="btLuu_Click" ValidationGroup="kt" />
                    <asp:Button ID="btHuy" runat="server" Text="Hủy " OnClick="btHuy_Click" Width="61px" />
                </div>
            </asp:Panel>
        </div>
</asp:Content>